package com.mirror.llk.task;

import com.mirror.llk.bean.domain.GameBean;
import com.mirror.llk.view.GameView;
import com.mirror.utils.base.BaseTask;

public class GameTask extends BaseTask {

	private GameView gameView;

	private GameBean gameBean;

	public GameTask(GameView gameView, GameBean gameBean) {
		this.gameView = gameView;
		this.gameBean = gameBean;
	}

	@Override
	protected String doInBackground(String... params) {
		if (gameBean.getType() == 1) {

		} else {
			// TODO: 加载游戏数据(level，int[][])
		}
		return super.doInBackground(params);
	}

	@Override
	protected void onPostExecute(String result) {
		gameView.startGame();
	}

	@Override
	protected void onProgressUpdate(Void... voids) {
		super.onProgressUpdate(voids);
	}

}
